<!DOCTYPE html>
<html>
<head>
<title>薪酬福利管理</title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.name" @keyup.enter="query" placeholder="姓名">
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.company" @keyup.enter="query" placeholder="公司">
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.department" @keyup.enter="query" placeholder="部门">
			</div>

			<div class="form-group col-sm-2">
				<select v-model="q.post" @keyup.enter="query" class="form-control" >
					<option v-for="post in dictList" :value="post.value">{{post.label}}</option>
				</select>
			</div>
			<a class="btn btn-default" @click="query">查询</a>
			#if($shiro.hasPermission("salarywelfaremanagement:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("salarywelfaremanagement:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("salarywelfaremanagement:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
			<div class="form-group">
			   	<div class="col-sm-1 control-label">姓名</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="salaryWelfareManagement.name" readonly="readonly"  @click="popUser" placeholder="请选择"/>
			    </div>
				<div class="col-sm-1 control-label">身份证号</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="salaryWelfareManagement.idno" readonly="readonly" placeholder="身份证号"/>
				</div>
			</div>


			<div class="form-group">

				<div class="col-sm-1 control-label">公司</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="salaryWelfareManagement.company" readonly="readonly" placeholder="公司"/>
				</div>
				<div class="col-sm-1 control-label">部门</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="salaryWelfareManagement.department" readonly="readonly" placeholder="部门"/>
				</div>

			</div>

			<div class="form-group">


				<div class="col-sm-1 control-label">岗位名称</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="salaryWelfareManagement.post" readonly="readonly" placeholder="岗位名称"/>
				</div>
				<div class="col-sm-1 control-label">基本工资</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="salaryWelfareManagement.baseSalary" placeholder="基本工资"/>
				</div>
			</div>



									<div class="form-group">
			   	<div class="col-sm-1 control-label">绩效工资</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="salaryWelfareManagement.achievementsSalary" placeholder="绩效工资"/>
			    </div>
				<div class="col-sm-1 control-label">加班费</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="salaryWelfareManagement.overtimePay" placeholder="加班费"/>
				</div>
			</div>

				<div class="form-group">
			   	<div class="col-sm-1 control-label">工龄工资</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="salaryWelfareManagement.seniorityPay" placeholder="工龄工资"/>
			    </div>
				<div class="col-sm-1 control-label">其他补助</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="salaryWelfareManagement.otherSubsidy" placeholder="其他补助"/>
				</div>
			</div>

									<div class="form-group">
			   	<div class="col-sm-1 control-label">交通补助</div>
			   	<div class="col-sm-2">
			      <input type="text" class="form-control" v-model="salaryWelfareManagement.trafficSubsidy" placeholder="交通补助"/>
			    </div>
				<div class="col-sm-1 control-label">通讯补助</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="salaryWelfareManagement.communicationSubsidy" placeholder="通讯补助"/>
				</div>
			</div>


			<div class="form-group">
				<div class="col-sm-1 control-label">其他核报</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="salaryWelfareManagement.otherReported" placeholder="其他核报"/>
				</div>
				<div class="col-sm-1 control-label">误餐补助</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="salaryWelfareManagement.wcbz" placeholder="误餐补助"/>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-1 control-label">防寒费</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="salaryWelfareManagement.coldProofFee" placeholder="防寒费"/>
				</div>
				<div class="col-sm-1 control-label">防署费</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="salaryWelfareManagement.sunstrokeFee" placeholder="防署费"/>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-1 control-label">开门红</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="salaryWelfareManagement.goodStartFee" placeholder="开门红"/>
				</div>
				<div class="col-sm-1 control-label">春节</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="salaryWelfareManagement.springFestival" placeholder="春节"/>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-1 control-label">端午</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="salaryWelfareManagement.dragonBoatFestival" placeholder="端午"/>
				</div>
				<div class="col-sm-1 control-label">中秋</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="salaryWelfareManagement.midAutumnFestival" placeholder="中秋"/>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-1 control-label">家属慰问</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="salaryWelfareManagement.familyCondolences" placeholder="家属慰问"/>
				</div>
				<div class="col-sm-1 control-label">春节福利</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="salaryWelfareManagement.unionSpringFestivalWelfare" placeholder="工会春节福利"/>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-1 control-label">女性福利</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="salaryWelfareManagement.unionWomenWelfare" placeholder="女性福利"/>
				</div>
				<div class="col-sm-1 control-label">儿童节</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="salaryWelfareManagement.childrenDay" placeholder="儿童节"/>
				</div>
			</div>

			<div class="form-group">
				<div class="col-sm-1 control-label">工会费</div>
				<div class="col-sm-2">
					<input type="text" class="form-control" v-model="salaryWelfareManagement.unionDues" placeholder="工会费"/>
				</div>
			</div>

							<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<!-- 弹出框 -->
<div id="popLayer" style="display: none;padding:10px;">
	<table id="popGrid"></table>
	<div id="popGridPager"></div>
	<!--<ul id="menuTree" class="ztree"></ul>-->
</div>



<!-- 弹出选择用户 -->
<div id="popUser" style="display: none;padding:10px;">
<!--	<form id="formSearch" class="form-horizontal">
		<div class="form-group" >
			<label class="control-label col-sm-1" style="width: 120px" for="popUser_name">姓名 </label>
			<div class="col-sm-2">
				<input type="text" class="form-control" id="popUser_name">
			</div>
			<div class="col-sm-1" style="text-align:center;">
				<button type="button"  id="find_btn" @click="searchByName" class="btn btn-primary">查询</button>
			</div>
		</div>
	</form>-->
	<table id="popUserGrid"></table>
	<div id="popUserGridPager"></div>
</div>




<script src="${rc.contextPath}/js/hr/salarywelfaremanagement.js?_${date.systemTime}"></script>
</body>
</html>